package com.lyy.king.tools.interfaces;

import com.lyy.king.common.core.domain.Result;
import com.lyy.king.common.rpc.annotations.LearningApiInterface;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件处理接口
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: cdx
 * @Created: 2024/1/10 20:03
 */
@LearningApiInterface
public interface FileCommonInterface {
    /**
     * 上传文件
     * @param file
     * @return
     */
    Result<String> savaFile(MultipartFile file);


    /**
     * 根据文件名获取下载链接
     * @param fileName
     * @return
     */
    Result<String> getFileDownUrlByFileName(String fileName);
}
